package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Getter@Setter
public class Accident {
    /**dfsfsdfsdfsd
     * STATE_INVALIDATE = 1:表示理赔状态为待验证
     * STATE_INVALIDATED_BILL = 2;表示理赔状态为验证通过,待填理赔单
     * STATE_BILLED_AUDIT= 3;表示理赔明细已填,待提审
     * STATE_AUDIT= 4;表示理赔状态为待审核
     * STATE_AUDIT_PAY= 5;表示理赔状态为审核通过 ,待支付
     * STATE_PAYED = 6;表示理赔单已支付
     * STATE_PAYED_FAILED = 7;表示理赔单支付失败
     * STATE_REFUSE = 8;表示审核被拒绝
     * */
    public static final int STATE_INVALIDATE = 1;
    public static final int STATE_INVALIDATED_BILL = 2;
    public static final int STATE_BILLED_AUDIT= 3;
    public static final int STATE_AUDIT= 4;
    public static final int STATE_AUDIT_PAY= 5;
    public static final int STATE_PAYED = 6;
    public static final int STATE_PAYED_FAILED = 7;
    public static final int STATE_REFUSE = 8;
    private Long id;
    private Integer state;
    private Client client;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date occurenceTime;

    private String occurencePlace;

    private String insuranceNo;

    private String inputStaff;

    private String validateStaff;

    private String note;

    private String responsibility;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date reportTime;

    private String caseDescript;

    private ClaimBill claimBill;

}